
        window.onload = function () {
            var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"), { sheetCount: 1 });
            initSpread(spread);
        document.getElementById('btnPrint').addEventListener("click", function () {
                var sheet = spread.sheets[0];
                var printInfo = sheet.printInfo();
                printInfo.showBorder(false);
                printInfo.showGridLine(false);
                printInfo.columnStart(0);
                printInfo.columnEnd(15);
                printInfo.rowStart(0);
                printInfo.showColumnHeader(GC.Spread.Sheets.Print.PrintVisibilityType.hide);
                printInfo.showRowHeader(GC.Spread.Sheets.Print.PrintVisibilityType.hide);
                spread.print(0);
    });
        };

        function initSpread(spread) {
            var sd = data;
            if (sd.length > 0) {
                if (!spread) {
                    return;
                }

                spread.suspendPaint();
                spread.fromJSON(sd[0]);
                spread.resumePaint();
            }
        }
        